<template>
  <div>
    {{$store.state.counter}}
    <button @click="handleChange">increment</button>
  </div>
</template>
<script>
export default {
  methods:{
    handleChange(){
      this.$store.commit('increment')
    }
  }
}
</script>

